#define _CRT_SECURE_NO_WARNINGS 1
#include "sort.h"
TestOP()
{
	srand(time(0));
	const int N = 10000;
	int* a1 = (int*)malloc(sizeof(int) * N);
	if (a1 == NULL)
	{
		perror("malloc fail");
		exit(-1);
	}
	/*int* a2 = (int*)malloc(sizeof(int) * N);
	int* a3 = (int*)malloc(sizeof(int) * N);
	int* a4 = (int*)malloc(sizeof(int) * N);
	int* a5 = (int*)malloc(sizeof(int) * N);*/
	for (int i = 0; i < N; ++i)
	{
		a1[i] = rand();
		/*a2[i] = a1[i];
		a3[i] = a1[i];
		a4[i] = a1[i];
		a5[i] = a1[i];*/

	}
	int begin1 = clock();
	InsertSort(a1, N);
	int end1 = clock();
	printf("begin:%d\n", begin1);
	printf("end:%d\n", end1);

	printf("SelectSort:%d\n", end1 - begin1);
	free(a1);



}
void TestInsertSort()
{
	int a[10] = { 9,1,2,5,7,4,8,6,3,5 };

	InsertSort(a, sizeof(a) / sizeof(a[0]));
	
}

int main()
{
	/*TestOP();*/



	TestInsertSort();

	return 0;
}